package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.PostgraduateInfoDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 考研信息管理 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface PostgraduateInfoMapper extends BaseMapper<PostgraduateInfoDO> {

    @Select("SELECT share_status, COUNT(info_id) AS count FROM postgraduate_info GROUP BY share_status")
    List<Map<String, Object>> countPostgraduateInfoSharing();
}